<div class="companies view">
<div class="widget" id="widget_company_view" style="width: 96%">
    <div class="toggle">&nbsp;</div>
    <h3 class="handle"><?php printf(__('View Company(viewed %d)', true), $company['Company']['clicks']);?></h3>
    <div class="content">
        <?php //debug($company);  ?>
        <div class="table">
            <table class="view fixed">
                <tr>
                    <td class="title" colspan="4"><?php __('Basic Information'); ?></td>
                </tr>
                <tr>
                    <td class="key"><?php __('Company Name'); ?></td>
                    <td class="value"><?php e($company['Company']['name']); ?></td>
                    <td class="key"><?php __('Published'); ?></td>
                    <td class="value"><?php e($company['Company']['created']); ?></td>
                </tr>
                <tr>
                    <td class="key"><?php __('Company Type'); ?></td>
                    <td class="value"><?php e($company['CompanyType']['name']); ?></td>
                    <td class="key"><?php __('Company Location'); ?></td>
                    <td class="value"><?php e($company['CompanyLocation']['name']); ?></td>
                </tr>
                <tr>
                    <td class="key"><?php __('Company Industry'); ?></td>
                    <td class="value"><?php e($company['CompanyIndustry']['name']); ?></td>
                    <td class="key"><?php __('Job Count'); ?></td>
                    <td class="value">
                        <span><?php e($company['Company']['job_count']); ?></span>
                        <?php e($html->link(
                                __('(View Detail)', true),
                                array(
                                    'controller'=>'jobs',
                                    'action'=>'viewByCompany',
                                    $company['Company']['id']
                                ),
                                array('title'=>__('Click to view jobs for this company', true))
                            )); ?>
                    </td>
                </tr>
                <tr>
                    <td class="title" colspan="4"><?php __('Contact Information'); ?></td>
                </tr>
                <tr>
                    <td class="key"><?php __('Company Website'); ?></td>
                    <td class="value">
                        <?php e($text->autoLinkUrls($company['Company']['website'],
                            array('title'=>__('Click to visit the official website of the company', true),'rev'=>'external')));
                        ?>
                    </td>
                    <td class="key"><?php __('Company Email'); ?></td>
                    <td class="value">
                        <?php e($text->autoLinkEmails($company['Company']['email'],
                            array('title'=>__('Click to send email to this company', true),'rev'=>'external')));
                        ?>
                    </td>
                </tr>
                <tr>
                    <td class="title" colspan="4"><?php __('Detail Information'); ?></td>
                </tr>
                <tr>
                    <td class="key"><?php __('Company Introduction'); ?></td>
                    <td class="value" style="width: 80%" colspan="3"><?php e($company['Company']['introduction']); ?></td>
                </tr>
            </table>
            <div class="actions">
                <ul>
                    <li><?php e($html->link(__('Return', true), array('controller'=>'companies','action'=>'index'))); ?></li>
                    <?php if($user['group'] != 'student'): ?>
                        <li><?php echo $html->link(__('Edit Company', true), array('action' => 'edit', $company['Company']['id'])); ?> </li>
                        <li><?php echo $html->link(__('Delete Company', true), array('action' => 'delete', $company['Company']['id'])); ?> </li>
                        <li><?php echo $html->link(__('New Job', true), array('controller' => 'jobs', 'action' => 'add')); ?> </li>
                    <?php endif; ?>
                    <br class="clear"/><br class="clear"/>
                </ul>
            </div>
        </div>
    </div>
</div>
</div>